#include "tracvalidationpage.h"
#include "tracvalidationwidget.h"

#include <QtGui/QVBoxLayout>
#include <QtGui/QTextEdit>
#include <QDebug>

namespace Trac {
namespace Internal {

TracValidationPage::TracValidationPage(QWidget *parent) :
    QWizardPage(parent),
    m_widget(new TracValidationWidget())
{
    connect(m_widget, SIGNAL(validChanged(bool)), this, SIGNAL(completeChanged()));
    QVBoxLayout *layout = new QVBoxLayout();
    layout->addWidget(m_widget);
    setLayout(layout);
    setTitle(tr("Validation"));
    setSubTitle(tr("Validate user"));

}

TracValidationPage::~TracValidationPage()
{

}

void TracValidationPage::initializePage()
{
    m_widget->initialize();

}

bool TracValidationPage::isComplete() const
{
    return m_widget->isValid();
}

} // namespace Internal
} // namespace Trac
